package com.example.demo.entity;


import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class TOrder implements Serializable {
    private String ordernum;
    private  Integer totalprice;
    private Date createtime;
    private Date expiretime;
    private Integer valid;
    private Integer userid;
   private List<TOrderDetail>  TOrderDetail;

    public TOrder(String ordernum, Integer totalprice, Date createtime, Date expiretime, Integer valid, Integer userid) {
        this.ordernum = ordernum;
        this.totalprice = totalprice;
        this.createtime = createtime;
        this.expiretime = expiretime;
        this.valid = valid;
        this.userid = userid;
    }

    public List<com.example.demo.entity.TOrderDetail> getTOrderDetail() {
        return TOrderDetail;
    }

    public void setTOrderDetail(List<com.example.demo.entity.TOrderDetail> TOrderDetail) {
        this.TOrderDetail = TOrderDetail;
    }

    public TOrder() {
    }

    public String getOrdernum() {
        return ordernum;
    }

    public void setOrdernum(String ordernum) {
        this.ordernum = ordernum;
    }

    public Integer getTotalprice() {
        return totalprice;
    }

    public void setTotalprice(Integer totalprice) {
        this.totalprice = totalprice;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getExpiretime() {
        return expiretime;
    }

    public void setExpiretime(Date expiretime) {
        this.expiretime = expiretime;
    }

    public Integer getValid() {
        return valid;
    }

    public void setValid(Integer valid) {
        this.valid = valid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    @Override
    public String toString() {
        return "TOrderMapper{" +
                "ordernum='" + ordernum + '\'' +
                ", totalprice=" + totalprice +
                ", createtime=" + createtime +
                ", expiretime=" + expiretime +
                ", valid=" + valid +
                ", userid=" + userid +
                '}';
    }
}
